package annotation.newfy

@Newify([Date])
class Hoge {
	def name, age

	Hoge() {
		name = "yasu"
		age = Date()
	}
}

class Hoge2 {
	@Newify([Hoge])
	def aaa() {
		def hoge = Hoge()
		println hoge.name + hoge.age
	}

}

hoge2 = new Hoge2()
hoge2.aaa();

@Newify([Integer]) rubyLikeNew() {
	assert Integer.new(42) == 42
}

@Newify([Date]) newDate() {
	return Date()
}

println newDate()

